﻿using System;
using Db4objects.Db4o.Config.Attributes;

namespace DonNicky.Db.Db4o.Config.Attributes
{
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
    public class UniqueGroupAttribute : IndexedAttribute
    {
        private int _groupID;

        public UniqueGroupAttribute(int groupID)
        {
            _groupID = groupID;
        }

        public int GroupID
        {
            get { return _groupID; }
            set { _groupID = value; }
        }
    }
}
